.clearfix {
  &::after,&::before{
    display: block;
    clear: both;
    content: '';
    height: 0;
  }
}
.swiper--wrapper{
  position: relative;
  width: 300px;
  height: 600px;
}
.swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  &.horizontal {
    white-space: nowrap;
  }
  >div{
    width: 100%;
    height: 100%;
  }
}
.swiper-item--wrapper{
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}
.swiper-item{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
}
// nav 部分
.swiper-nav--wrapper{
  width: 100%;
  overflow: hidden;
}
.swiper-nav {
  width: auto;
  min-width: 100%;
  white-space: nowrap;
}
.swiper-nav--item {
  display: inline-block;
  list-style: none;
  font-size: 12px;
  box-sizing: border-box;
  padding: 5px 10px;
  line-height: 30px;
  a {
    text-decoration: none;
    color: #ccc;
  }
}
.swiper-nav--item-active {
  a {
    color: #ace;
  }
}
